package com.ibiaoke.common.spring;

import com.ibiaoke.common.utils.DateUtils;
import com.ibiaoke.common.utils.ValidateUtils;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

/**
 * 全局日期处理类
 * Created by huhaichao on 2017/6/22.
 */
public class TimeStampToDateConvert implements Converter<String, Date> {
    @Override
    public Date convert(String s) {
        return DateUtils.parseSimpleDate(s);
    }
}
